home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Bitmap / Sources / Binding.k next >
Encoding:
Text File  |  1996-09-17  |  2.0 KB  |  64 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Binding.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12.  
  13. #ifndef BINDING_K
  14. #define BINDING_K
  15.  
  16. // Editor User String
  17. #define kODFBitmapEditorUserString "ODFBitmap R2"
  18.  
  19. //
  20. // SOM identifier for the ODFBitmap part
  21. // see also SOMPart.idl: module ODFExamples, interface ODFBitmap
  22. //
  23. #define kODFBitmapEditor     "ODFExamples::ODFBitmap"
  24.  
  25. //
  26. // ODFBitmap reads several kinds of data from OpenDoc: ODF streams and JFIF.
  27. // This ISO prefix is really annoying isn't it.
  28. //
  29.  
  30. #define kODFBitmapKind         "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:ODFExamples:Kind:ODFBitmap"
  31. #define kJpegKind            "+//ISO 9070/ANSI::113722::US::CI LABS::MIME:image/jpeg"
  32. #define kJpegCyberItemKind    "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:Cyberdog:Kind:CyberItem:MIME:image/jpeg"
  33.  
  34. //
  35. // Translation OSTypes
  36. // These do correspond to traditional MacOS file types; they are used
  37. // when importing/translating from MacOS files, clipboard, drag&drop, etc.
  38. // See nmap kODEditorPlatformKind.
  39. //
  40. // Note: the JPEG standard does not actually specify a file kind; everybody
  41. // uses the separate JFIF (JPEG File Interchange Format) specification.
  42. // Partly as a result of this confusion some identifiers use "jpeg" variants
  43. // (like MIME: image/jpeg) and some use "jfif" variants (like OSTypes: 'JFIF').
  44. //
  45.  
  46. #define kPICTOSType            'PICT'
  47. #define kJPEGOSType         'JPEG'
  48. #define kJFIFOSType         'JFIF'
  49.  
  50. //
  51. // nmap constants
  52. // Used only in the .r file
  53. //
  54.  
  55. #define kKindCategoryMapID            1100
  56. #define kEditorKindMapID            kKindCategoryMapID + 1
  57. #define kEditorUserStringMapID        kEditorKindMapID + 1
  58. #define kKindUserStringMapID        kEditorUserStringMapID + 1
  59. #define kOldMacOSTypeMapID            kKindUserStringMapID + 1
  60. #define kEditorPlatformKinds        kOldMacOSTypeMapID + 1
  61.  
  62. #endif
  63.  
  64.